package com.shanzmoo.db.sys.entity.dto;

import com.shanzmoo.base.constant.RegularExpression;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 用户更新对象
 * @author Gzhao
 * @date 2020/11/16
 */
@Data
@ApiModel(value = "用户更新密码对象")
public class UserUpdatePasswordDto{

    @Size(min = 6, max = 12, message = "请输入6-12位由数字和26个英文字母组成的字符串")
    @Pattern(regexp = RegularExpression.NUMBER_CHARACTERS, message = "请输入6-12位由数字和26个英文字母组成的字符串")
    @NotNull(message = "用户id不允许为空")
    private String password;

}
